import request from '@/utils/request'

// 查询危废库存信息列表
export function listWasteInventory(query) {
    return request({
        url: '/business/wasteInventory/list',
        method: 'get',
        params: query
    })
}

// 查询危废库存信息详细
export function getWasteInventory(wasteInventoryId) {
    return request({
        url: '/business/wasteInventory/' + wasteInventoryId,
        method: 'get'
    })
}

// 新增危废库存信息
export function addWasteInventory(data) {
    return request({
        url: '/business/wasteInventory',
        method: 'post',
        data: data
    })
}

// 修改危废库存信息
export function updateWasteInventory(data) {
    return request({
        url: '/business/wasteInventory',
        method: 'put',
        data: data
    })
}

// 删除危废库存信息
export function delWasteInventory(wasteInventoryId) {
    return request({
        url: '/business/wasteInventory/' + wasteInventoryId,
        method: 'delete'
    })
}

// 导出危废库存信息
export function exportWasteInventory(query) {
    return request({
        url: '/business/wasteInventory/export',
        method: 'get',
        params: query
    })
}